package com.feng.animations;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class MainActivity extends Activity 
{
	private Button tween = null;
	
	private BtnListener listener = new BtnListener ();
	
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) 
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        this.tween = (Button)findViewById (R.id.tween);
        this.tween.setOnClickListener (this.listener);
    }
    
    class BtnListener implements OnClickListener
    {
		@Override
		public void onClick(View v) 
		{
			Intent intent = new Intent ();
			switch (v.getId())
			{
				case R.id.tween:
					intent.setClass(MainActivity.this, TweenActivity.class);
					break;
				default:
					return;
			}
			startActivity (intent);
		}
    }
    
}